package world.ztomorrow.user.listen;


import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import world.ztomorrow.user.dao.mapper.UserInfoMapper;
import world.ztomorrow.user.dao.po.UserInfo;

import java.util.List;

@RequiredArgsConstructor
@RestController
public class NovelListen {

    private final UserInfoMapper userInfoMapper;

    @PostMapping("/users")
    List<UserInfo> listUsersById(@RequestBody List<Long> userIds){
        return userInfoMapper.selectBatchIds(userIds);
    }
}
